home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1999 #1 / Amiga Plus 1999 #1.iso / System-Boost / Workbench / LFSystemBinder / Examples / GrabVar.sh < prev    next >
Encoding:
Text File  |  1998-06-21  |  601 b   |  20 lines

  1. #   GrabVar.sh
  2. #       © LFSoft 1995
  3. #
  4. #   This script for CSH 5.20+ grab variables on tops of env: tree.
  5. #
  6. #  LFSystemBinder must run with its default Arexx port "LFSystemBinder.rdv"
  7. #
  8. #   Note: This file is quite obsolete (as LFSystemBinder can grab all variables
  9. #   since V2.0). It must be considered only as an example of using CSH with
  10. #   LFSystemBinder
  11.  
  12. cd env:
  13.     # Read variables but *.prefs
  14. rxsend -l LFSystemBinder.rdv show var
  15. foreach -v var ( ~(*.prefs*) ) \
  16. "if -n -d $var; rxsend -l LFSystemBinder.rdv grab var $var; endif"
  17.     # Grab variables ...
  18.  
  19. cd ~; # Return to the previous CD
  20.